//
//  FFLogFormatter.h
//  FFSurveillance
//
//  Created by roro_latrobe on 16/10/30.
//  Copyright © 2016年 cn.wanda. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DDLog.h"

@class FFLogFormatter;

@protocol FFLogFormatterDelegate <NSObject>

@optional
/**
 *	告诉delegate,已经格式化了消息对象
 *
 *	@param 	formatter 	<#formatter description#>
 *	@param 	logMessage 	原消息对象
 *	@param 	formattedText 	格式化后的字符串
 */
- (void)ffLogFormatter:(FFLogFormatter *)formatter orginalLogMessage:(DDLogMessage *)logMessage formattedText:(NSString *)formattedText;

@end

@interface FFLogFormatter : NSObject<DDLogFormatter>

@property (nonatomic, weak) id<FFLogFormatterDelegate> formatterDelegate;

@property (nonatomic, retain)NSDateFormatter *dateFormatter;

- (NSString *)formatLogMessage:(DDLogMessage *)logMessage;

@end
